<div class="row">
	<div class="col-sm-12">
	
    	<div>
    		<a href="<?php echo DOMAIN_NURSERY?>/role/add/" class="btn btn-sm">添加角色</a>
    	</div>
    	<div class="space"></div>


		<table class="table table-striped table-bordered table-hover">
			<tr>
				<th>角色名称</th>
				<th>操作</th>
			</tr>
			<?php if( !empty( $role_all )):?>
			<?php foreach ( $role_all as $e ):?>
				<tr>

					<td><?php echo $e['name']?></td>
					<td>
						<?php if($e['name']==='超级管理员'){?>
							--
						<?php }else { ?>
						<a  href="<?php echo DOMAIN_NURSERY?>/role/edit?id=<?php echo $e['id'];?>">编辑</a>
						<a  href="<?php echo DOMAIN_NURSERY?>/role/set_permissions?id=<?php echo $e['id'];?>">分配权限</a>
						<a  href="<?php echo DOMAIN_NURSERY?>/role/role_del?id=<?php echo $e['id'];?>"  onclick="return confirm('确定要删除吗?')">删除</a>
						<?php } ?>

					</td>
				</tr>
				<?php endforeach;?>
			<?php endif;?>
		</table>
				
		<div class="float_right">
			<?php echo $pagelink;?>
		</div>
	</div>
</div>
<!--content-->
